package com.zhuozhou.jdyc.main.main.bean;

import androidx.databinding.BaseObservable;

import java.util.List;

/**
 * Create by Once_ChuXy on 2021/8/11
 * Describe:类型
 */
public class BasicsTypeBean extends BaseObservable {


    /**
     * code : 200
     * msg : 商城:轮播、大类、成功
     * array : {"banner":[{"id":49,"title":"开业大吉","image":"https://yuncang.dzsmxx.com/images/1621679921.jpg","content":"<p><img style=\"width: 470px;\" src=\"https://yuncang.dzsmxx.com/uploads/20210522/3eeaeff7d34f600411cf5ff48ca54b7e.jpg\" data-filename=\"filename\"><img style=\"width: 470px;\" src=\"https://yuncang.dzsmxx.com/uploads/20210522/08a1d437022d2a085b4968548d6c62aa.jpg\" data-filename=\"filename\"><br><\/p>","sort":1,"admin_id":65},{"id":39,"title":"招商家入驻","image":"https://yuncang.dzsmxx.com/images/1621498557.jpg","content":"<p>招商家入驻，促客户消费。<img style=\"width: 470px;\" src=\"https://yuncang.dzsmxx.com/uploads/20210521/4b26acb0614508d92bf263a545ae1284.jpg\" data-filename=\"filename\"><br><\/p>","sort":3,"admin_id":65},{"id":50,"title":"诚邀天下有志之士","image":"https://yuncang.dzsmxx.com/images/1621680520.jpg","content":"<p><img style=\"width: 470px;\" src=\"https://yuncang.dzsmxx.com/uploads/20210522/40b1751b59a570bd77b422f0210ec970.jpg\" data-filename=\"filename\"><br><\/p>","sort":2,"admin_id":65}],"type":[{"id":60,"name":"亲子","image":"https://yuncang.dzsmxx.com/uploads/20210415/03.png"}]}
     */

    private int code;
    private String msg;
    private ArrayBean array;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ArrayBean getArray() {
        return array;
    }

    public void setArray(ArrayBean array) {
        this.array = array;
    }

    public static class ArrayBean {
        private List<BannerBean> banner;
        private List<TypeBean> type;
        private List<BasicsCommodityTypeBean.ArrayBean> commodity;

        public List<BannerBean> getBanner() {
            return banner;
        }

        public void setBanner(List<BannerBean> banner) {
            this.banner = banner;
        }

        public List<TypeBean> getType() {
            return type;
        }

        public void setType(List<TypeBean> type) {
            this.type = type;
        }

        public List<BasicsCommodityTypeBean.ArrayBean> getCommodity() {
            return commodity;
        }

        public void setCommodity(List<BasicsCommodityTypeBean.ArrayBean> commodity) {
            this.commodity = commodity;
        }

        public static class BannerBean {
            /**
             * id : 49
             * title : 开业大吉
             * image : https://yuncang.dzsmxx.com/images/1621679921.jpg
             * content : <p><img style="width: 470px;" src="https://yuncang.dzsmxx.com/uploads/20210522/3eeaeff7d34f600411cf5ff48ca54b7e.jpg" data-filename="filename"><img style="width: 470px;" src="https://yuncang.dzsmxx.com/uploads/20210522/08a1d437022d2a085b4968548d6c62aa.jpg" data-filename="filename"><br></p>
             * sort : 1
             * admin_id : 65
             */

            private int id;
            private String title;
            private String image;
            private String content;
            private int sort;
            private int admin_id;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getImage() {
                return image;
            }

            public void setImage(String image) {
                this.image = image;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public int getSort() {
                return sort;
            }

            public void setSort(int sort) {
                this.sort = sort;
            }

            public int getAdmin_id() {
                return admin_id;
            }

            public void setAdmin_id(int admin_id) {
                this.admin_id = admin_id;
            }
        }

        public static class TypeBean {
            /**
             * id : 60
             * name : 亲子
             * image : https://yuncang.dzsmxx.com/uploads/20210415/03.png
             */

            private int id;
            private String name;
            private String image;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getImage() {
                return image;
            }

            public void setImage(String image) {
                this.image = image;
            }
        }
    }
}
